<?php
$sanPham=getSanPham($idSanPham);
//var_dump($idSanPham);exit();
//var_dump($sanPham);exit();
?>
<div id="content">
		<h2>Sửa sản phẩm</h2>
		<form method="post" action="sua_sanpham_action.php?<?php echo 'idSP='.$sanPham[0].'&&idCL='.$sanPham[1];?>">
		<fieldset>
			<label>tên sản phẩm:</label>
			<span class="medium_input"><input class="medium" name="tenSanPham" type="text" value="<?php echo $sanPham[2];?>" /></span><br class="hid" />
            
            <label>mô tả về sản phẩm:</label>
			<span class="medium_input"><input class="medium" name="moTa" type="text" value="<?php echo $sanPham[3];?>" /></span><br class="hid" />
            
            
            <label>Giá:</label>
			<span class="medium_input"><input class="medium" name="gia" type="text" value="<?php echo $sanPham[4];?>" /></span><br class="hid" />
            
            <label>Url hình:</label>
			<span class="medium_input"><input class="medium" name="urlHinh" type="text" value="<?php echo $sanPham[5];?>" /></span><br class="hid" />
            
            <label>Số lần xem sản phẩm:</label>
			<span class="medium_input"><input class="medium" name="soLanXem" type="text" value="<?php echo $sanPham[6];?>" /></span><br class="hid" />
            
            <label>Số lượng tồn kho:</label>
			<span class="medium_input"><input class="medium" name="soLuongTonKho" type="text" value="<?php echo $sanPham[7];?>" /></span><br class="hid" />
            
            <label>Ghi chú:</label>
			<span class="medium_input"><input class="medium" name="ghiChu" type="text" value="<?php echo $sanPham[8];?>" /></span><br class="hid" />
            
            <label>Số lần mua:</label>
			<span class="medium_input"><input class="medium" name="soLanMua" type="text" value="<?php echo $sanPham[9];?>" /></span><br class="hid" />
            
            <label>Ẩn hiện:</label>
			<span class="medium_input"><input class="medium" name="anHien" type="text" value="<?php echo $sanPham[10];?>" /></span><br class="hid" />
            <p></p>
            
			 <label>Ngày cập nhật:</label>
             <?php $date=date('d,m,Y',$sanPham[11]);?>
			<span class="medium_input"><input class="medium" name="ngayCapNhat" type="text" value="<?php echo $date;?>" /></span><br class="hid" />

			<input type="submit" name="submit" class="button" value="đồng ý" />
			<span class="clear"></span>
		</fieldset>
		</form>
	</div>